var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/rated', function(req, res, next) {
  res.json({
    success: true,
    data: [
      {
        movieName: "志愿者xxx",
        img: "xxxx",
        score: 9.9
      },
      {
        movieName: "志愿者xxx2",
        img: "xxxx2",
        score: 9.8
      },
    ]
  })
});

router.get('/movies', function(req, res, next) {
  res.json({
    success: true,
    data: [
      {
        movieName: "朗朗人生",
        img: "xxxx",
        score: 9.9
      },
      {
        movieName: "志愿者xxx2",
        img: "xxxx2",
        score: 9.8
      },
      {
        movieName: "朗朗人生",
        img: "xxxx",
        score: 9.9
      },
    ]
  })
});

module.exports = router;
